package tichu_project252.CardClasses;

/**
 * Implements the construction of the Mahjong Card.
 *
 * @author Alexandra Barka, ΑΜ: 2867, login : barka.
 * @author Euaggelia Petauraki AM: 2875 login: petavraki.
 * @version %I%, %G%
 */
public class Mahjong extends specialCard {

    /**
     * Constructs a new Mahjong card.
     *
     * <p><b>Constructor: </b> Mahjong ()</p>
     *
     * <p><b>Precondition: </b> </p> <p><b>Postcondition: </b> Constructs a
     * valid Mahjong card </p>
     *
     * @see <a
     * href="http://docs.oracle.com/javase/tutorial/java/IandI/super.html">super</a>
     *
     */
    public Mahjong() throws Exception {
        super(1, "Mahjong");
    }

    /**
     * Sets the image of the mahjong. <p><b>Transformer(mutator):</b>
     * LoadImage(String pathImage)</p>
     *
     * <p><b>Precondition: </b> </p> <p><b>Postcondition: </b>sets the path
     * image of Mahjong </p>
     *
     * @param pathImage The path of the image
     * @throws Exception
     */
    @Override
    public void LoadImage(String pathImage) throws Exception {
        this.pathImage = pathImage + "mahjong.png";
    }
}
